import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

// ignore: must_be_immutable
class CommonTabbarContainerWidget extends AppBar {
  final String titleName;
  final BuildContext buildContext;
  final bool isShowBackIcon;

  CommonTabbarContainerWidget(
      {this.titleName, this.isShowBackIcon = true, this.buildContext})
      : super(
            backgroundColor: Color(0xFF58C7B7),
            title: Text(titleName ?? ""),
            centerTitle: true,
            leading: isShowBackIcon
                ? IconButton(
                    icon: Icon(Icons.arrow_back),
                    onPressed: buildContext != null
                        ? () {
                            Navigator.of(buildContext).pop();
                          }
                        : null)
                : null);
}
